/*长连接测试：创建一个客户端持续给服务器发送数据，直到超过超时时间看看是否正常*/
#include "../server.hpp"

int main()
{
    Socket cli;
    cli.CreateClient(8080, "127.0.0.1");
    std::string s = "GET /hello HTTP/1.1\r\nConnection: keep-alive\r\nContent-Length: 0\r\n\r\n";
    while(1)
    {
        
        cli.Send(s.c_str(), s.size());
        char buff[1024] = {0};
        cli.Recv(buff, 1023);
        Log::DEBUG("[%s]", buff);
        sleep(3);
    }


    return 0;
}